package com.arcaneshift.util;

import com.common.security.exceptions.ConverterException;

public class Converter {

	private Converter() {}
	
	public static final int convertToInt(String value) throws ConverterException {
		try {
			return Integer.parseInt(value);
		} catch (NumberFormatException exception) {
			throw new ConverterException(ConverterException.CONVERTER_EXCEPTION);
		}
	}
}
